home *** CD-ROM | disk | FTP | other *** search
- Path: jupiter.sun.csd.unb.ca!dwoo
- From: dwoo@jupiter.sun.csd.unb.ca (Dennis K. C. Woo)
- Newsgroups: comp.lang.c
- Subject: Please help a novice to build a 32-bit Windows DLL...
- Date: 3 Feb 1996 15:59:05 GMT
- Organization: University of New Brunswick, Fredericton, NB, Canada
- Message-ID: <4f00o9$c99@sol.sun.csd.unb.ca>
- NNTP-Posting-Host: jupiter-alt3.unb.ca
-
-
- Hi experts,
-
- I have some mathematical codes (using std C libraries and do not call any OS's
- APIs) that are written and tested under OS/2. Now I would like to build a
- Windows 3.1 32-bit DLL. Under OS/2, building the DLL is very easy -- just like
- building any OS/2 executables. However, it seems that building DLL for
- Windows 3.1 is more difficult than I thought originally. I am using Watcom
- C/C++ compiler for my programming. Suppose I would like to make the following
- codes into a 32-Bit DLL:
-
- typedef struct { int a, int b, double *x } A_Structure ;
-
- A_Structure Function1( int x, int y, double x, char * p )
- {
- /* some codes. */
- /* this program call a function from a 32-bit */
- /* windows library, say library1.lib */
- }
-
- double Function2( double dummy )
- {
- /* some codes here */
- }
-
- Please assume that I do not know anything about Windows 3.1 programming
- convention etc.. How would I convert this code into a Windows 32-bit DLL using
- Watcom's compiler and linker?
-
- Your help will be much appreciated! Thanks a million!
-
- Dennis
- *****************************************************************
- * Dennis Woo Department of Mechanical Engineering *
- * E-mail: dwoo@unb.ca University of New Brunswick *
- * Office Tel: (506) 447-3076 -------- __o *
- * Voice mail: (506) 453-0614 ------- _`\<,_ *
- * FAX : (506) 453-5025 ------- (*)/ (*) *
- *****************************************************************
-